package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("dd_product")
public class Product {
    @TableId(value = "book_id",type = IdType.AUTO)
    private int bookId;
    private int cid;
    private String bookName;
    private Double bookPrice;
    @TableField("groundingDate")
    private Date groundingDate;
    private String bookState;
    private int inventory;
    private String author;
    private String press;
    private String pack;
    @TableField("editNum")
    private int editNum;
    private Date printDate;
    private int printCount;
    @TableField("ISBN")
    private String ISBN;
    private String wordCount;
    private String pageCount;
    private String style;
    private String page;
    private int salenum;
    private Double customeScore;
    private String recommend;
    private String messages;
    private String authorMsg;
    private String list;
    private String mediaComment;
    @TableField("imagePath")
    private String imagePath;
    private String seriesName;
    private Double dangprice;
    private String productImage;
    @TableField(exist = false)
    private Category category;


}
